<?php
X::import('Application.Modles.CommandResult');

class CShowResult extends CommandResult {
	/**
	 * array : 
	 * @var mixed
	 */
	public $result;
	/**
	 * This value says which kind of result we would show up.
	 * it could be ProjectList, TodoList, and so on.
	 * for example, If the $resultType is 'ProjectList', we would 
	 * call $this->showProjectList() to display the result.
	 *
	 * @var string The type of the result.
	 */
	public $type;
	
	const TYPE_PROJECT_LIST 	= 'ProjectList';
	const TYPE_TODO_LIST 		= 'TodoList';
	const TYPE_TODO 			= 'Todo';
	const TYPE_PROJECT 			= 'Project';
	const TYPE_TODO_ATTR 		= 'TodoAttr';
	const TYPE_PROJECT_ATTR		= 'ProjectAttr';
	
	function __construct(){
		parent::__construct();
		$this->result = array();
	}
}